{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "2a05517e",
   "metadata": {},
   "source": [
    "# Causal Inference for Tabular Data"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "24fa4952",
   "metadata": {},
   "source": [
    "Causal inference involves finding the effect of intervention on one set of variables, on another variable. For instance, if A->B->C. Then all the three variables may be correlated, but intervention on C, does not affect the values of B, since C is not a causal ancestor of of B. But on the other hand, interventions on A or B, both affect the values of C. \n",
    "\n",
    "While there are many different kinds of causal inference questions one may be interested in, we currently support three kinds-- \n",
    "1. Average Treatment Effect (ATE), \n",
    "2. Conditional ATE (CATE), and \n",
    "3. Couterfactuals. \n",
    "\n",
    "In **ATE**, we intervene on one set of variables with a treatment value and a control value, and estimate the expected change in value of some specified target variable. Mathematically,\n",
    "\n",
    "$$\\texttt{ATE} = \\mathbb{E}[Y | \\texttt{do}(X=x_t)] - \\mathbb{E}[Y | \\texttt{do}(X=x_c)]$$\n",
    "\n",
    "where $\\texttt{do}$ denotes the intervention operation. In words, ATE aims to determine the relative expected difference in the value of $Y$ when we intervene $X$ to be $x_t$ compared to when we intervene $X$ to be $x_c$. Here $x_t$ and $x_c$ are respectively the treatment value and control value.\n",
    "\n",
    "**CATE** makes a similar estimate, but under some condition specified for a set of variables. Mathematically,\n",
    "\n",
    "$$\\texttt{CATE} = \\mathbb{E}[Y | \\texttt{do}(X=x_t), C=c] - \\mathbb{E}[Y | \\texttt{do}(X=x_c), C=c]$$\n",
    "\n",
    "where we condition on some set of variables $C$ taking value $c$. Notice here that $X$ is intervened but $C$ is not. \n",
    "\n",
    "While ATE and CATE estimate expectation over the population, **Counterfactuals** aim at estimating the effect of an intervention on a specific instance or sample. Suppose we have a specific instance of a system of random variables $(X_1, X_2,...,X_N)$ given by $(X_1=x_1, X_2=x_2,...,X_N=x_N)$, then in a counterfactual, we want to know the effect an intervention (say) $X_1=k$ would have had on some other variable(s) (say $X_2$), holding all the remaining variables fixed. Mathematically, this can be expressed as,\n",
    "\n",
    "$$\\texttt{Counterfactual} = X_2 | \\texttt{do}(X_1=k), X_3=x_3, X_4=4,\\cdots,X_N=x_N$$\n",
    "\n",
    "To understand how causal inference works in the case of time series, let's consider the following graph as an example:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "2a1be04c",
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAApQAAAHzCAYAAACe1o1DAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABZKklEQVR4nO3deXyU1cH28WsyWSfsS8IiBFNRk5CA7KsgiqJoRUFZRlwRBFtbra1WrQtWqS1VQUGW+GqVYRNRiywCIhACsimQhKDYCUG2hD2QPTP3+0dLHqMomWQmdzLz+34+zx+BzH0usA9cnHPucyyGYRgCAAAAqijI7AAAAACo2yiUAAAAqBYKJQAAAKqFQgkAAIBqoVACAACgWiiUAAAAqBYKJQAAAKqFQgkAAIBqoVACAACgWiiUAAAAqBYKJQAAAKqFQgkAAIBqoVACAACgWiiUAAAAqBYKJQAAAKqFQgkAAIBqoVACAACgWiiUAAAAqBYKJQAAAKqFQgkAAIBqoVACAACgWiiUAAAAqBYKJQAAAKqFQgkAAIBqoVACAACgWiiUAAAAqBYKJQAAAKqFQgkAAIBqoVACAACgWiiUAAAAqBYKJQAAAKqFQgkAAIBqoVACAACgWiiUAAAAqJZgswP4M5fh0nHXceW6cpVblqsCo0BlRpmCLcGyWWyKCo5SlDVKzazNZLVYzY4LAABQJRbDMAyzQ/ibPFee0krSlFacpmKjWJIUpCC55S7/nh9+HWYJU2JYohJDE9XA2sCUzAAAAFVFofSiYqNYKQUpyijJkEUWGar8b+35708ITVA/Wz+FWcJ8mBQAAMB7KJRekl2arVX5q1RoFHpUJH/MIotsFpsGRQ5STEiMFxMCAAD4BoXSC3YV7dK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cTpdKpdu3YKCuK3uDaoX7++xowZo5UrV+rw4cOaMmWKcnJyNHLkSEVHR+uee+7RqlWrVFZWZnZUAADqHJa8fWTo0KEqLi7WihUrzI6CX7Bv377yax/37dun6OhojRw5Una7XV27duXaRwAAKoFC6SMdO3ZU3759NX36dLOjoBIMw9D27dvlcDi0YMEC5eTk6PLLLy+/9vGyyy4zOyIAALUW67E+YBgGh5rXMRaLRd26ddPrr7+ugwcP6rPPPlPPnj01ZcoUtW/fXj169NC0adOUk5NjdlQAAGodCqUPHD9+XOfOneNQ8zoqODhY119/vf71r38pJydHCxYsUIsWLfT444+rdevWGjx4sN5//32dPXvW7KgAANQKFEofcDqdksQMpR+w2WwaMWKEPvnkEx05ckTTp09XQUGB7r77bkVHR2vUqFH69NNPVVpaanZUAABMwx5KH1iwYIFGjRql06dPq2HDhmbHgQ9kZ2dr/vz5cjgcSk9PV9OmTXXnnXdq9OjR6t27N2/3AwACCn/r+YDT6VTTpk0pk34sJiZGTz75pNLS0rRr1y498MADWrp0qfr166fY2Fg99dRTysjIMDsmAAA1ghlKHxg7dqx2796trVu3mh0FNcjtdislJUUOh0MffPCBTp8+rY4dO5Zf+8iNSQAAf0Wh9IGBAweqefPmWrhwodlRYJLzZ5A6HA4tXbpUJSUl6t+/v+x2u4YPH65GjRqZHREAAK9hydsHODIIYWFhGjp0qD744APl5OTo7bffltVq1bhx4xQdHa3bb79dH374oYqKisyOCgBAtVEovay0tFTff/89hRLlGjZsqPvuu09r1qzRwYMHNXnyZB04cEDDhw9XixYt9MADD2jt2rVyuVxmRwUAoEpY8vay//znP7rsssu0Zs0aXXvttWbHQS22d+/e8msfnU6nWrVqpVGjRslut6tTp05c+wgAqDMolF62evVqXX/99XI6nRxsjkoxDENbtmyRw+HQwoULdezYMcXFxclut2v06NH87wgAUOux5O1lTqdTVqtVbdq0MTsK6giLxaKePXvqjTfe0KFDh7R8+XJ17txZkydPVmxsrPr06aMZM2bo2LFjZkcFAOCCKJRe5nQ61bZtWwU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NntdvXo0YOXeQDAC5ihrCan06no6GjKJFBLxcbG6plnntGePXu0Y8cOjRkzRh9++KF69eql9u3b69lnn9U333xjdkwAqNOYoayme++9V99++602bdpkdhQAleRyubR+/Xo5HA4tXrxYeXl56tKli+x2u0aOHKmWLVuaHREA6hQKZTVdffXVatOmjRwOh9lRAFRBUVGRli1bJofDoWXLlqmsrEwDBw6U3W7X7bffrgYNGpgdEQBqPZa8q4kjg4C6LTw8XMOGDdOSJUt09OhRzZo1S2VlZbr//vsVHR2tO++8U5988omKi4vNjgoAtRaFshqKiop0+PBhCiXgJxo3bqyxY8fqiy++0IEDBzRp0iR9++23Gjp0qFq2bKlx48Zpw4YNcrvdZkcFgFqFJe9q+Oabb3TllVdq3bp16t+/v9lxAPhIRkaGHA6H5s2bp+zsbLVp06b82sekpCSz4wGA6SiU1bBixQrddNNNys7OVtu2bc2OA8DH3G63Nm3apHnz5mnRokU6ceKEOnToUH7tI38OAAhULHlXg9PpVEhIiFq3bm12FAA1ICgoSH379tWMGTN0+PBhLV26VB06dNCkSZMUExOjq6++WrNmzdLJkyfNjgoANYpCWQ1ZWVlq166drFar2VEA1LDQ0FDdfPPNmj9/vnJycvTee+/JZrNp4sSJatGihW699VYtWrRIhYWFZkcFAJ9jybsabr/9dhUUFGjlypVmRwFQS+Tk5GjhwoVyOBzaunWr6tevr9tvv112u10DBw7kH6AA/BKFsho6deqk3r17a8aMGWZHAVAL7du3r/zax3379qlFixYaOXKk7Ha7unTpwrWPAPwGS95VZBiGnE6nLr30UrOjAKil2rdvr+eee07ffPONtm7dqhEjRmj+/Pnq1q2brrzySr3wwgv67rvvzI4JANXGDGUVHT9+XM2bN9fixYs1bNgws+MAqCPKysq0du1aORwOLVmyROfOnVP37t1lt9s1YsQIRUdHmx0RADzGDGUVZWVlSRKHmgPwSHBwsK6//nr961//Uk5OjhYsWKAWLVro8ccfV+vWrTV48GC9//77Onv2rNlRAaDSKJRV5HQ6JVEoAVSdzWbTiBEj9Mknn+jIkSOa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NGzdWnz59ygtmly5dOG8wgLlcLl122WUaMGCA3nnnHbPjwEQffvihhg8frsWLF2vYsGFmxwF+gkIJ1AL5+fnasmVLecHcvHmz8vPzFR4eru7du5cXzF69eqlhw4Zmx0UNWbZsmW6++WZt3bqVA64DnGEYuv322/Xll19qz549aty4sdmRgAoolEAtVFZWpp07d1Y4rig3N1dBQUFKSkqqcFxRq1atzI4LHxkyZIhyc3O1bds2s6OgFjh06JDi4+N1xx13KDk52ew4QAUUSqAOMAxD+/btq1Awv/vuO0lSbGxshYJ5xRVXsMfKDzidTl122WV6++23dd9995kdB7XE7NmzNX78eH3++ecaOHCg2XGAchRKoI46cuSIUlNTywvmzp075Xa71bx5c/Xt27e8ZHbq1Imr2+qgJ554QrNnz9ahQ4dks9nMjoNawu1265prrtGhQ4e0e/du/reBWoNCCfiJvLw8ffnll+UF88svv1RRUZFsNpt69epVXjB79OihevXqmR0Xv6CoqEiXXHKJ7r77br366qtmx0Et8+233yopKUm/+93v9Morr5gdB5BEoQT8VklJib766qvygrlx40adPHlSVqtVnTt3Li+Yffr0UVRUlNlx8QPvv/++7r77bn3zzTe6/PLLzY6DWmjy5Mn6y1/+oq1bt6pz585mxwEolECgcLvd2rt3b4XzMLOzsyVJl19+eYXzMGNjY9mHaaJevXqpfv36WrVqldlRUEuVlpaqa9euslqt2rp1q4KDg82OhABHoQQC2Pfff18+e5mSkqL09HQZhqGWLVtWeNEnKSlJVqvV7LgB4auvvlKXLl300UcfaejQoWbHQS22fft29ejRQ5MnT9af/vQns+MgwFEoAZQ7deqUNm3aVF4wt23bppKSEtWvX1+9e/cuL5jdu3dXRESE2XH90oMPPqiVK1cqKyuLWSdc1OOPP67p06crLS1Nl112mdlxEMAolAB+VlFRkbZt21ZeMFNTU5WXl6eQkBB17dq1vGD26dNHTZo0MTtunXf69Gm1atVKTz31lJ555hmz46AOyM/PV2Jiotq1a6fPP/+crSowDYUSQKW5XC6lp6dX2Id5+PBhSVJCQkKFfZht27Y1OW3dM3Xq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75VZ0cLRHn6mt/GOeFQAAoAqirJ4f2XPjkzdq7+d7Ne2maerzQB+5y9xKmZOiFle20OGMwz4fvzZihhIAAASsZtZmCrOEefSZVgmt9NDih1SvWT2tmLxCWxxbNPjJwUockujRc8IsYWpqberRZ2ori2EYNXvXEAAAQC2SWpiqHUU7avT6RYss6hreVb0jetfYmL7EDCUAAAhoiaGJptzl3SG07h9ofh6FEgAABLQG1gZKCE2QRZYaGc8iixJCE9TA2qBGxqsJFEoAABDw+tn6yWax+bxUWmSRzWJTP1s/n45T0yiUAAAg4IVZwjQocpDPl74NGRoUOcjjF4FqOwolAACApJiQGA2IGODTMQZEDFBMSIxPxzADhRIAAOB/OoZ3LC+V3lr+Pv+cARED1DG8o1eeWdtwbBAAAMCPZJdma3X+ahUYBdVaBj+/Z3JQ5CC/nJk8j0IJAABwAcVGsVIKUpRRkiGLLB4Vy/PfnxCaoH62fn63Z/LHKJQAAAC/IM+Vp/SSdO0u3q1io1iSFKSgCneA//DrMEuYksKS1CG0g18dDfRLKJQAAACV4DJcOuE6oVxXrnLKclRgFKjMKFOwJVg2i03RwdGKskapqbWprBar2XFrFIUSAAAA1cJb3gAAAKgWCiUAAACqhUIJAACAaqFQAgAAoFoolAAAAKgWCiUAAACqhUIJAACAaqFQAgAAoFoolAAAAKgWCiUAAACqhUIJAACAaqFQAgAAoFoolAAAAKgWCiUAAACqhUIJAACAaqFQAgAAoFoolAAAAKgWCiUAAACqhUIJAACAaqFQAgAAoFoolAAAAKgWCiUAAACqhUIJAACAaqFQAgAAoFoolAAAAKgWCiUAAACqhUIJAACAaqFQAgAAoFoolAAAAKgWCiUAAACqhUIJAACAaqFQAgAAoFoolAAAAKgWCiUAAACq5f8DFriG//r8jPUAAAAASUVORK5CYII=",
      "text/plain": [
       "<Figure size 640x480 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "from causalai.misc.misc import plot_graph\n",
    "from causalai.data.data_generator import DataGenerator\n",
    "\n",
    "    \n",
    "fn = lambda x:x\n",
    "coef = 1.\n",
    "sem = {\n",
    "        'a': [], \n",
    "        'b': [('a', coef, fn),],\n",
    "        'c': [('b', coef, fn), ('e', coef, fn),],\n",
    "        'd': [('c', coef, fn),],\n",
    "        'e': [('a', coef, fn),],\n",
    "        }\n",
    "T = 2000\n",
    "data,var_names,graph_gt = DataGenerator(sem, T=T, seed=0)\n",
    "plot_graph(graph_gt, node_size=500)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "fd5e64f7",
   "metadata": {},
   "source": [
    "Given this graph with 5 variables-- a b, c, d and e, and some observational tabular data in the form for a $T \\times 4$ \n",
    "matrix, suppose we want to estimate the causal effect of interventions of\n",
    "the variable b on variable d. The SCM for this graph takes the form:\n",
    "\n",
    "$$a = n_a $$\n",
    "$$b = f_b(a) + n_b $$\n",
    "$$c = f_c(b,e) + n_c $$\n",
    "$$d = f_d(c) + n_d $$\n",
    "$$e = n_e $$\n",
    "\n",
    "Here $n_x$ are noise terms. Then intervening the values of the variable b at each time step, i.e., $do(b)$, causally affects\n",
    "the values of $d$. This is because $d$ directly depends on $c$, and $c$ depends on $b$, thus there is an indirect \n",
    "causal effect. \n",
    "\n",
    "Notice that if we were to intervene both $a$ and $b$, the intervention of $a$ \n",
    "would not have any impact on $d$ because it is blocked by $b$, which is also intervened. On the other hand, if we \n",
    "were to intervene $c$ in addition to $b$ or $e$, then the intervention on $b$ and $e$ would not have any impact on $d$ because it \n",
    "would be blocked by $c$.\n",
    "\n",
    "Coming back to the example shown in the above graph, we have established that an intervention on the values of $b$ \n",
    "impacts the values of $d$. Now suppose we want to calculate the treatment effect (say ATE) of this intervention on \n",
    "$d$. For the purpose of this exposition, let's consider just one of the terms in the ATE formula above, since both \n",
    "the terms have the same form. Specifically, we want to calculate,\n",
    "\n",
    "$$\\mathbb{E}[d | \\texttt{do}(b)]$$\n",
    "Conceptually, this is achieved by setting the value of $b=v$ ($v$ is the desired intervention value) in the observational data \n",
    "for all samples, then traverse the causal graph\n",
    "in the order $b$, $c$, and $d$ (the causal order), for each observation. At edge $b->c$, we use the function $f_c$, to predict the causal effect of the intervened values of $b$ along with the observed value of $e$ on $c$. And similarly, at edge $c->d$, we use the function $f_d$, to predict the causal effect of the new values of $c$ on $d$. This finally yields the causal effect of the intervention of $b$ on the variable $d$ for all obervaational data. To compute the expectation $\\mathbb{E}[d | \\texttt{do}(b)]$, we simply take the average effect on $d$ over all the observational data.\n",
    "\n",
    "Notice that we do not need \n",
    "to evaluate the equation for $a$ in this process because its value has on impact on $d$ once we intervene $b$. This saves computation. We would \n",
    "similarly have ignored any other variable during this computation if it was either not affected by the intervention, \n",
    "or if there was no causal path from that variable to the target variable $d$.\n",
    "\n",
    "\n",
    "Now that we have a conceptual understanding, we point out that in reality, the functions $f_x$ for $x \\in \\{b,c,d \\}$ are unknown in practice. In fact, given only observational data, we do not even know the causal graph as the one shown in the example above. Therefore, causal inference is treated as a two step process. First we estimate the causal graph using the observational data. We then use one of the various techniques to perform causal inference given both the observational data and the causal graph.\n",
    "\n",
    "## Causal Inferencne methods supported by CausalAI\n",
    "\n",
    "In our library, for tabular data, we support two methods for perform causal inference-- the **backdoor adjustment set method**, and another method that simulates the conceptual process described above for causal inference, that we will refer to as **causal_path method**.\n",
    "\n",
    "#### causal_path method (defaut)\n",
    "\n",
    "Let's begin with the causal_path method. Conceptually, this method works in two steps. For illustration, let's use the causal graph shown above as our example.\n",
    "1. We train two models $P_{\\theta_1}(c|b)$ and $P_{\\theta_2}(d|c)$ to predict c from b, and d from c, using the observational data. We have not used the intervention information in this step.\n",
    "2. we set the value of $b=v$ ($v$ is the desired intervention value) for all the samples in the observational data, then traverse the causal graph\n",
    "in the order $b$, $c$, and $d$ (the causal order), for each observation. For each of the nodes c and d, we use the corresponding trained models $P_{\\theta_1}(c|b)$ and $P_{\\theta_2}(d|c)$ as proxies for the unknown functions $f_c$ and $f_d$, and follow the steps described above to estimate the causal effect.\n",
    "\n",
    "#### Backdoor method\n",
    "Given an intervention variable $X$ and a target variable $Y$, the backdoor method tries to find an adjustment set $Z$, that blocks all the backdoor paths between $X$ and $Y$, which are essentially the non-causal paths from $X$ to $Y$. Given such a set $Z$, we can use the the following result (Theorem 1) from Pearl 1995 (Causal diagrams for empirical research):\n",
    "\n",
    "$$P(y | do(X)) = \\sum_z P(y | X, Z). P(Z) \\approx (1/T) . P(y | X, Z)$$\n",
    "\n",
    "The backdoor criterion is defined as follows: A set of variables $Z$ satisfies the back-door criterion relative to an ordered pair of variables $(X_i,X_j)$ in a directed acyclic graph G if: (i) no node in $Z$ is a descendant of $X_i$, and (ii) $Z$ blocks every path between $X$, and $X_j$ which contains an arrow into $X$,. If $X$ and $Y$ are two disjoint sets of nodes in G, $Z$ is said to satisfy the back-door criterion relative to $(X, Y)$ if it satisfies it relative to any pair $(X_i,X_j)$ such that $X_i \\in X$ and $X_j \\in Y$.\n",
    "\n",
    "For the causal graph in the example, the path $b <- a -> e -> c -> d$ is a valid backdoor path, since it contains an arrow into the intervention variable $b$, and $b$ and $d$ are the two end points of the path. The backdoor adjustment set corresponding to this path would be any one of $\\{ a,e \\}$, $\\{ a \\}$, and $\\{ e \\}$. This is because conditioning on any one of these sets blocks the path from aforementioned backdoor path. Note that variable $c$ cannot be part of the adjustment set as it is a descendant of the intervention variable $b$. For more details, see the documentation on tabular causal inference."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "30a59732",
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import matplotlib\n",
    "from matplotlib import pyplot as plt\n",
    "%matplotlib inline\n",
    "import pickle as pkl\n",
    "import time\n",
    "from functools import partial\n",
    "\n",
    "from causalai.data.data_generator import DataGenerator, ConditionalDataGenerator\n",
    "from causalai.models.tabular.causal_inference import CausalInference\n",
    "from sklearn.linear_model import LinearRegression\n",
    "from sklearn.neural_network import MLPRegressor\n",
    "from causalai.misc.misc import plot_graph\n",
    "\n",
    "def define_treatments(name, t,c):\n",
    "    treatment = dict(var_name=name,\n",
    "                    treatment_value=t,\n",
    "                    control_value=c)\n",
    "    return treatment\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b0284477",
   "metadata": {},
   "source": [
    "## Continuous Data"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8c60a231",
   "metadata": {},
   "source": [
    "### Average Treatment Effect (ATE)\n",
    "For this example, we will use synthetic data that has linear dependence among data variables."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "e3c8f410",
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAApQAAAHzCAYAAACe1o1DAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABH6ElEQVR4nO3de3hU9bn+/3tlkplkIARJCJRyUASSQACxYkVEUwu7ntDUw/awS6uV1goFQUVx12q1RfeuYD3WdouKqGy1HmItUlH7S40oVeg2hCSEgxBEhGRCzDmTzMz6/eF3UiCnmUxmVjLzfl0XFyRZsz7PCMKdZ32etQzTNE0BAAAAPRRndQEAAADo3wiUAAAACAmBEgAAACEhUAIAACAkBEoAAACEhEAJAACAkBAoAQAAEBICJQAAAEJCoAQAAEBICJQAAAAICYESAAAAISFQAgAAICQESgAAAISEQAkAAICQECgBAAAQEgIlAAAAQkKgBAAAQEgIlAAAAAgJgRIAAAAhIVACAAAgJARKAAAAhIRACQAAgJAQKAEAABASAiUAAABCQqAEAABASAiUAAAACAmBEgAAACEhUAIAACAkBEoAAACEhEAJAACAkBAoAQAAEBICJQAAAEJCoAQAAEBICJQAAAAISbzVBQAAgNjhNb1yeV2q8FaowlOhRrNRHtOjeCNeTsOp9Ph0pdvSlWZLk82wWV0uAmSYpmlaXQQAAIhutd5aFbUUqchdJLfpliTFKU4++dqOOfpjh+HQZMdkTbZP1iDbIEtq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z1QuU1vXqy5smgb26+58M9yrszTwdLDmrwiME6d/G5qj1Uq7d/+7YeOvJQQOdwGA79JOUnlu8xRWQQKAEAUaWwuVD5TflhO39OUo6mJk4N2/l726amTUEPLIXKkKHTEk/TmUlnRmxNWIvbBgEAosrUxKnKScqR9HWw6Q3+8/S3MCl9PbBkxbO8rR5YQmQRKAEAUWdq4lTlDsyV03CGHCr9eyZzB+b2uzAp/WtgqbfCdXcMGZpkn9TnB5bQu7jkDQCIWm7TrYLGAhW3FMuQEVSnzn/8JPskzXLOCvrm6X2J23TruZrnAh5Y6il/+J6XMq9f//dC8AiUAICoV+ut1faW7drm3tY2oHL8/RmP/thhODTFMUXZ9uyo6bQxsIRwIlACAGKG1/SqylulCm+FDnsOq9FslMf0KN6Il9Nwalj8MKXb0pVqS43K6WQGlhAuBEoAAGKIP1QGuwWgM/7zECZjG4ESAIAYU95arnca3gl5T6V/z+ScAXO4zB3jCJQAAMQgBpbQmwiUAADEMAaW0BsIlAAAIOYHlhAaAiUAAABCwpNyAAAAEBICJQAAAEJCoAQAAEBICJQAAAAICYESAAAAISFQAgAAICQESgAAAISEQAkAAICQECgBAAAQEgIlAAAAQkKgBAAAQEgIlAAAAAgJgRIAAAAhIVACAAAgJARKAAAAhIRACQAAgJAQKAEAABASAiUAAABCQqAEAABASAiUAAAACAmBEgAAACEhUAIAACAkBEoAAACEhEAJAACAkBAoAQAAEBICJQAAAEJCoAQAAEBICJQAAAAICYESAAAAISFQAgAAICQESgAAAISEQAkAAICQECgBAAAQEgIlAAAAQvL/A2qUqKHg85BWAAAAAElFTkSuQmCC",
      "text/plain": [
       "<Figure size 640x480 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "{'a': [],\n",
       " 'b': ['a', 'f'],\n",
       " 'c': ['b', 'f'],\n",
       " 'd': ['b', 'g'],\n",
       " 'e': ['f'],\n",
       " 'f': [],\n",
       " 'g': []}"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "fn = lambda x:x\n",
    "coef = 0.5\n",
    "sem = {\n",
    "        'a': [], \n",
    "        'b': [('a', coef, fn), ('f', coef, fn)], \n",
    "        'c': [('b', coef, fn), ('f', coef, fn)],\n",
    "        'd': [('b', coef, fn), ('g', coef, fn)],\n",
    "        'e': [('f', coef, fn)], \n",
    "        'f': [],\n",
    "        'g': [],\n",
    "        }\n",
    "T = 5000\n",
    "data, var_names, graph_gt = DataGenerator(sem, T=T, seed=0, discrete=False)\n",
    "plot_graph(graph_gt, node_size=500)\n",
    "graph_gt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "13ea46e4",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "True ATE = 6.00\n"
     ]
    }
   ],
   "source": [
    "\n",
    "# Notice c does not depend on a if we intervene on b. Hence intervening a has no effect in this case. \n",
    "# This can be verified by changing the intervention values of variable a, which should have no impact on the \n",
    "# counterfactual. \n",
    "# (see graph_gt above)\n",
    "t1='a' \n",
    "t2='b'\n",
    "target = 'c'\n",
    "target_var = var_names.index(target)\n",
    "\n",
    "# treatment values\n",
    "intervention11 = 100*np.ones(T)\n",
    "intervention21 = 10*np.ones(T)\n",
    "intervention_data1,_,_ = DataGenerator(sem, T=T, seed=0,\n",
    "                        intervention={t1:intervention11, t2:intervention21})\n",
    "\n",
    "# control values\n",
    "intervention12 = -0.*np.ones(T)\n",
    "intervention22 = -2.*np.ones(T)\n",
    "intervention_data2,_,_ = DataGenerator(sem, T=T, seed=0,\n",
    "                        intervention={t1:intervention12, t2:intervention22})\n",
    "\n",
    "\n",
    "\n",
    "true_effect = (intervention_data1[:,target_var] - intervention_data2[:,target_var]).mean()\n",
    "print(\"True ATE = %.2f\" %true_effect)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c8e2b3cd",
   "metadata": {},
   "source": [
    "We support two causal inference method-- backdoor method, and an in-house method that we call causal_path. We use both below."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "561f5875",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Estimated ATE using causal_path method: 6.38\n",
      "0.01s\n",
      "Estimated ATE using backdoor method: 7.21\n",
      "0.01s\n"
     ]
    }
   ],
   "source": [
    "treatments = [define_treatments(t1, intervention11,intervention12),\\\n",
    "             define_treatments(t2, intervention21,intervention22)]\n",
    "\n",
    "tic = time.time()\n",
    "# CausalInference_ = CausalInference(data, var_names, graph_gt,\\\n",
    "#         partial(MLPRegressor, hidden_layer_sizes=(100,100)) , False)\n",
    "CausalInference_ = CausalInference(data, var_names, graph_gt, LinearRegression , discrete=False, method='causal_path')\n",
    "\n",
    "ate, y_treat,y_control = CausalInference_.ate(target, treatments)\n",
    "print(f'Estimated ATE using causal_path method: {ate:.2f}')\n",
    "toc = time.time()\n",
    "print(f'{toc-tic:.2f}s')\n",
    "\n",
    "\n",
    "tic = time.time()\n",
    "# CausalInference_ = CausalInference(data, var_names, graph_gt,\\\n",
    "#         partial(MLPRegressor, hidden_layer_sizes=(100,100)) , False)\n",
    "CausalInference_ = CausalInference(data, var_names, graph_gt, LinearRegression , discrete=False, method='backdoor')\n",
    "\n",
    "ate, y_treat,y_control = CausalInference_.ate(target, treatments)\n",
    "print(f'Estimated ATE using backdoor method: {ate:.2f}')\n",
    "toc = time.time()\n",
    "print(f'{toc-tic:.2f}s')\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "7c556c77",
   "metadata": {},
   "source": [
    "**NOTE**: We find the backdoor method to exhibit a high variance in the ATE etimation, and this variance reduces with larger number of data samples. Therefore, the results from the Backdoor method may seem off at times, especially with smaller sample size. We find the causal_path method on the other hand to be much more robust."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "67b4ae98",
   "metadata": {},
   "source": [
    "### Conditional Average Treatement Effect (CATE)\n",
    "\n",
    "The data is generated using the following structural equation model:\n",
    "$$C = noise$$\n",
    "$$W = C + noise$$\n",
    "$$X = C*W + noise$$\n",
    "$$Y = C*X + noise$$\n",
    "\n",
    "We will treat C as the condition variable, X as the intervention variable, and Y as the target variable in our example below. The noise used in our example is sampled from the standard Gaussian distribution."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "922a91c4",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'C': [], 'W': ['C'], 'X': ['C', 'W'], 'Y': ['C', 'X']}"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "T=500\n",
    "data, var_names, graph_gt = ConditionalDataGenerator(T=T, data_type='tabular', seed=0, discrete=False)\n",
    "# var_names = ['C', 'W', 'X', 'Y']\n",
    "treatment_var='X'\n",
    "target = 'Y'\n",
    "target_idx = var_names.index(target)\n",
    "\n",
    "\n",
    "intervention1 = 0.1*np.ones(T, dtype=int)\n",
    "intervention_data1,_,_ = ConditionalDataGenerator(T=T, data_type='tabular',\\\n",
    "                                    seed=0, intervention={treatment_var:intervention1}, discrete=False)\n",
    "\n",
    "intervention2 = 0.9*np.ones(T, dtype=int)\n",
    "intervention_data2,_,_ = ConditionalDataGenerator(T=T, data_type='tabular',\\\n",
    "                                    seed=0, intervention={treatment_var:intervention2}, discrete=False)\n",
    "graph_gt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "af777ae7",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Approx True CATE: -1.65\n",
      "Estimated CATE using causal_path method: -1.61\n",
      "Time taken: 0.54s\n",
      "Estimated CATE using backdoor method: -1.31\n",
      "Time taken: 0.45s\n"
     ]
    }
   ],
   "source": [
    "condition_state=2.1\n",
    "diff = np.abs(data[:,0] - condition_state)\n",
    "idx = np.argmin(diff)\n",
    "# assert diff[idx]<0.1, f'No observational data exists for the conditional variable close to {condition_state}'\n",
    "\n",
    "\n",
    "cate_gt = (intervention_data1[idx,target_idx] - intervention_data2[idx,target_idx])\n",
    "print(f'Approx True CATE: {cate_gt:.2f}')\n",
    "\n",
    "####\n",
    "treatments = define_treatments(treatment_var, intervention1,intervention2)\n",
    "conditions = {'var_name': 'C', 'condition_value': condition_state}\n",
    "\n",
    "tic = time.time()\n",
    "model = partial(MLPRegressor, hidden_layer_sizes=(100,100), max_iter=200)\n",
    "CausalInference_ = CausalInference(data, var_names, graph_gt, model, discrete=False, method='causal_path')#\n",
    "\n",
    "cate = CausalInference_.cate(target, treatments, conditions, model)\n",
    "toc = time.time()\n",
    "print(f'Estimated CATE using causal_path method: {cate:.2f}')\n",
    "print(f'Time taken: {toc-tic:.2f}s')\n",
    "\n",
    "tic = time.time()\n",
    "model = partial(MLPRegressor, hidden_layer_sizes=(100,100), max_iter=200)\n",
    "CausalInference_ = CausalInference(data, var_names, graph_gt, model, discrete=False, method='backdoor')#\n",
    "\n",
    "cate = CausalInference_.cate(target, treatments, conditions, model)\n",
    "toc = time.time()\n",
    "print(f'Estimated CATE using backdoor method: {cate:.2f}')\n",
    "print(f'Time taken: {toc-tic:.2f}s')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "83dd5ede",
   "metadata": {},
   "source": [
    "NOTE: We find the backdoor method to exhibit a high variance, and this variance reduces with larger number of data samples. Therefore, the results from the Backdoor method may seem off at times, especially with smaller sample size. We find the causal_path method on the other hand to be much more robust."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "61659f76",
   "metadata": {},
   "source": [
    "### Counterfactual\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "110b633a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAApQAAAHzCAYAAACe1o1DAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABh0UlEQVR4nO3de0CN9+MH8PdzTnW6kJDcr9swibHZ3LJcoiRCSQ5mMxszvrOZ2/bddxdfl7nP3MYYOgnJJYSUEjJmQ2JYyHVSUnQ5p3PO8/tjv/ruwtZRp+ec57xff6065/m8Y0+9Pc/z+XwEURRFEBERERE9JYXUAYiIiIjIurFQEhEREVG5sFASERERUbmwUBIRERFRubBQEhEREVG5sFASERERUbmwUBIRERFRubBQEhEREVG5sFASERERUbmwUBIRERFRubBQEhEREVG5sFASERERUbmwUBIRERFRubBQEhEREVG5sFASERERUbmwUBIRERFRubBQEhEREVG5sFASERERUbmwUBIRERFRubBQEhEREVG5sFASERERUbmwUBIRERFRubBQEhEREVG5sFASERERUbmwUBIRERFRubBQEhEREVG5sFASERERUbmwUBIRERFRubBQEhEREVG5sFASERERUbmwUBIRERFRubBQEhEREVG5sFASERERUbmwUBIRERFRudhJHYCIiIjIGhhEA7IMWcg0ZCJTn4kCsQB6UQ87wQ7OgjM87DzgofSAu9IdSkEpddxKJYiiKEodgoiIiMhS5RnykKpLRao2FVpRCwBQQAEjjKWv+f3HKkEFL5UXvBy84Kp0lSRzZWOhJCIiInoMrahFckEy0nRpECBARNkrU8nrPR084e3sDZWgMmNS6bFQEhEREf1JRnEGDuQfQKFYaFKR/DMBApwFZ/i6+KKxfeMKTGhZWCiJiIiIfudM0RkkFiaafFXySUqO4+Pkg7aObSsgoeXhLG8iIiKi/1dSJgFUSJn8/XESCxNxpuhMhRzT0rBQEhEREeG329wlZdJcEgsTkVGcYdYxpMBCSURERDZPK2pxIP8ABAhmHUeAgLj8uNLZ4nLBQklEREQ2L7kgudwTcMpChIgCsQDJBclmHaeysVASERGRTcsz5CFNl2b2MllChIg0XRryDHmVMl5lYKEkIiIim5aqSzX7re4/EyDgnO5cpY5pTiyUREREZLMMogGp2tRKuzpZQoSIs9qzMIiGSh3XXLiXNxEREdmsLEPWU0+QeXD7AWJnx+JC/AXk389HtT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gJ5hjyc053DWe1ZaEUtAEABxR/2AP/9xypBhTaqNmjt0JpLAxERkdmxUBJZEYNoQLYhG5mGTNzV30WBWAC9qIedYAdnwRm17WrDQ+mBmsqaUApKqeMSEZGNYKEkIiIionLhLG8iIiIiKhcWSiIiIiIqFxZKIiIiIioXFkoiIiIiKhcWSiIiIiIqFxZKIiIiIioXFkoiIiIiKhcWSiIiIiIqFxZKIiIiIioXFkoiIiIiKhcWSiIiIiIqFxZKIiIiIioXFkoiIiIiKhcWSiIiIiIqFxZKIiIiIioXFkoiIiIiKhcWSiIiIiIqFxZKIiIiIioXFkoiIiIiKhcWSiIiIiIqFxZKIiIiIioXFkoiIiIiKhcWSiIiIiIqFxZKIiIiIioXFkoiIiIiKhcWSiIiIiIqFxZKIiIiIioXFkoiIiIiKhcWSiIiIiIqFxZKIiIiIioXFkoiIiIiKhcWSiIiIiIqFxZKIiIiIioXFkoiIiIiKpf/A4bp6tkvT4BlAAAAAElFTkSuQmCC",
      "text/plain": [
       "<Figure size 640x480 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "\n",
    "# sem_dict = GenerateRandomTabularSEM(var_names=['a', 'b', 'c', 'd', 'e', 'f'],\\\n",
    "#                                max_num_parents=4, seed=3, fn = lambda x:x, coef=0.8)\n",
    "# data, var_names, graph_gt = DataGenerator(sem_dict, T=10000, noise_fn=None,\\\n",
    "#                                     intervention=None, discrete=False, nstates=10, seed=1)\n",
    "\n",
    "fn = lambda x:x\n",
    "coef = 0.5\n",
    "sem = {\n",
    "        'a': [], \n",
    "        'b': [('a', coef, fn), ('f', coef, fn)], \n",
    "        'c': [('b', coef, fn), ('f', coef, fn)],\n",
    "        'd': [('b', coef, fn), ('g', coef, fn)],\n",
    "        'e': [('f', coef, fn)], \n",
    "        'f': [],\n",
    "        'g': [],\n",
    "        }\n",
    "T = 400\n",
    "data, var_names, graph_gt = DataGenerator(sem, T=T, seed=0, discrete=False)\n",
    "plot_graph(graph_gt, node_size=500)\n",
    "graph_gt\n",
    "\n",
    "intervention={'a':np.array([10.]*10), 'e':np.array([-0.]*10)}\n",
    "target_var = 'c'\n",
    "\n",
    "sample, _, _= DataGenerator(sem, T=10, noise_fn=None,\\\n",
    "                                    intervention=None, discrete=False, nstates=10, seed=1)\n",
    "sample_intervened, _, _= DataGenerator(sem, T=10, noise_fn=None,\\\n",
    "                                    intervention=intervention, discrete=False, nstates=10, seed=1)\n",
    "\n",
    "sample=sample[0]\n",
    "sample_intervened=sample_intervened[0]\n",
    "var_orig = sample[var_names.index(target_var)]\n",
    "var_counterfactual_gt = sample_intervened[var_names.index(target_var)]\n",
    "# print(f'Original value of var {target_var}: {var_orig:.2f}')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "d25a80f7",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "True counterfactual 3.33\n",
      "Estimated counterfactual using the causal_path method 3.13\n",
      "Estimated counterfactual using the backdoor method 1.45\n"
     ]
    }
   ],
   "source": [
    "interventions = {name:float(val[0]) for name, val in intervention.items()}\n",
    "print(f'True counterfactual {var_counterfactual_gt:.2f}')\n",
    "\n",
    "# model = partial(MLPRegressor, hidden_layer_sizes=(100,100), max_iter=200)\n",
    "model = LinearRegression\n",
    "\n",
    "CausalInference_ = CausalInference(data, var_names, graph_gt, model, discrete=False, method='causal_path')\n",
    "# model = None\n",
    "counterfactual_et = CausalInference_.counterfactual(sample, target_var, interventions, model)\n",
    "\n",
    "print(f'Estimated counterfactual using the causal_path method {counterfactual_et:.2f}')\n",
    "\n",
    "\n",
    "CausalInference_ = CausalInference(data, var_names, graph_gt, model, discrete=False, method='backdoor')\n",
    "# model = None\n",
    "counterfactual_et = CausalInference_.counterfactual(sample, target_var, interventions, model)\n",
    "print(f'Estimated counterfactual using the backdoor method {counterfactual_et:.2f}')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "08620dfc",
   "metadata": {},
   "source": [
    "NOTE: We find the backdoor method to exhibit a high variance, and this variance reduces with larger number of data samples. Therefore, the results from the Backdoor method may seem off at times, especially with smaller sample size. We find the causal_path method on the other hand to be much more robust."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "012f282e",
   "metadata": {},
   "source": [
    "## Discrete Data\n",
    "\n",
    "The synthetic data generation procedure for the ATE, CATE and Counterfactual examples below are identical to the procedure followed above for the continuous case, except that the generated data is discrete in the cases below. \n",
    "\n",
    "**Importantly**, when referring as discrete, we only treat the intervention variables as discrete in this case. The target variables and other variables are considered as continuous. Specifically, it doesn't make sense for the target variable to be discrete when we compute ATE or CATE, because it involves estimating the difference in states of the target variable, and for discrete variables, the difference between two states is not a meaningful quantity (as discrete states are symbolic in nature)."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "09a37cd3",
   "metadata": {},
   "source": [
    "### Average Treatment Effect (ATE)\n",
    " For this example, we will use synthetic data that has linear dependence among data variables."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "f2e764ad",
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import matplotlib\n",
    "from matplotlib import pyplot as plt\n",
    "import pickle as pkl\n",
    "import time\n",
    "from functools import partial\n",
    "\n",
    "from causalai.data.data_generator import DataGenerator, ConditionalDataGenerator\n",
    "from causalai.models.tabular.causal_inference import CausalInference\n",
    "from sklearn.linear_model import LinearRegression\n",
    "from sklearn.neural_network import MLPRegressor\n",
    "from causalai.misc.misc import plot_graph\n",
    "\n",
    "def define_treatments(name, t,c):\n",
    "    treatment = dict(var_name=name,\n",
    "                    treatment_value=t,\n",
    "                    control_value=c)\n",
    "    return treatment"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "4214321e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'a': [],\n",
       " 'b': ['a', 'f'],\n",
       " 'c': ['b', 'f'],\n",
       " 'd': ['b', 'b', 'g'],\n",
       " 'e': ['f'],\n",
       " 'f': [],\n",
       " 'g': []}"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "fn = lambda x:x\n",
    "coef = 0.6\n",
    "sem = {\n",
    "        'a': [], \n",
    "        'b': [('a', coef, fn), ('f', coef, fn)], \n",
    "        'c': [('b', coef, fn), ('f', coef, fn)],\n",
    "        'd': [('b', coef, fn), ('b', coef, fn), ('g', coef, fn)],\n",
    "        'e': [('f', coef, fn)], \n",
    "        'f': [],\n",
    "        'g': [],\n",
    "        }\n",
    "T = 5000\n",
    "\n",
    "t1='a'\n",
    "t2='b'\n",
    "target = 'c'\n",
    "discrete = {name:True if name in [t1,t2] else False for name in sem.keys()}\n",
    "\n",
    "data, var_names, graph_gt = DataGenerator(sem, T=T, seed=0, discrete=discrete, nstates=10)\n",
    "\n",
    "graph_gt"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "4918816b",
   "metadata": {},
   "source": [
    "Notice how we specify the variable discrete above. We specify the intervention variables as discrete, while the others as continuous, as per our explanation above."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "c6831c23",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Ground truth ATE = -2.83\n"
     ]
    }
   ],
   "source": [
    "\n",
    "\n",
    "target_var = var_names.index(target)\n",
    "# note that states can be [0,1,...,9], so the multiples below must be in this range\n",
    "intervention11 = 0*np.ones(T, dtype=int)\n",
    "intervention21 = 1*np.ones(T, dtype=int)\n",
    "intervention_data1,_,_ = DataGenerator(sem, T=T, seed=0,\n",
    "                            intervention={t1: intervention11, t2:intervention21}, discrete=discrete, nstates=10)\n",
    "\n",
    "intervention12 = 9*np.ones(T, dtype=int)\n",
    "intervention22 = 9*np.ones(T, dtype=int)\n",
    "intervention_data2,_,_ = DataGenerator(sem, T=T, seed=0,\n",
    "                            intervention={t1:intervention12, t2:intervention22}, discrete=discrete, nstates=10)\n",
    "\n",
    "true_effect = (intervention_data1[:,target_var] - intervention_data2[:,target_var]).mean()\n",
    "print(\"Ground truth ATE = %.2f\" %true_effect)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "f04b71fe",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Estimated ATE: -2.17\n",
      "Time taken: 1.41s\n"
     ]
    }
   ],
   "source": [
    "\n",
    "tic = time.time()\n",
    "\n",
    "treatments = [define_treatments(t1, intervention11,intervention12),\\\n",
    "             define_treatments(t2, intervention21,intervention22)]\n",
    "model = partial(MLPRegressor, hidden_layer_sizes=(100,100), max_iter=200) # LinearRegression\n",
    "CausalInference_ = CausalInference(data, var_names, graph_gt, model, discrete=True)#\n",
    "o, y_treat,y_control = CausalInference_.ate(target, treatments)\n",
    "print(f'Estimated ATE: {o:.2f}')\n",
    "toc = time.time()\n",
    "print(f'Time taken: {toc-tic:.2f}s')\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "04c54165",
   "metadata": {},
   "source": [
    "### CATE (conditional ATE)\n",
    "For this example we will use synthetic data that has non-linear dependence among data variables."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "b17db798",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'C': [], 'W': ['C'], 'X': ['C', 'W'], 'Y': ['C', 'X']}"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "T=5000\n",
    "treatment_var='X'\n",
    "target = 'Y'\n",
    "target_idx = ['C', 'W', 'X', 'Y'].index(target)\n",
    "\n",
    "discrete = {name:True if name==treatment_var else False for name in ['C', 'W', 'X', 'Y']}\n",
    "data, var_names, graph_gt = ConditionalDataGenerator(T=T, data_type='tabular', seed=0, discrete=discrete, nstates=10)\n",
    "# var_names = ['C', 'W', 'X', 'Y']\n",
    "\n",
    "\n",
    "\n",
    "# note that states can be [0,1,...,9], so the multiples below must be in this range\n",
    "intervention1 = 9*np.ones(T, dtype=int)\n",
    "intervention_data1,_,_ = ConditionalDataGenerator(T=T, data_type='tabular',\\\n",
    "                                    seed=0, intervention={treatment_var:intervention1}, discrete=discrete, nstates=10)\n",
    "\n",
    "intervention2 = 1*np.ones(T, dtype=int)\n",
    "intervention_data2,_,_ = ConditionalDataGenerator(T=T, data_type='tabular',\\\n",
    "                                    seed=0, intervention={treatment_var:intervention2}, discrete=discrete, nstates=10)\n",
    "graph_gt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "1215519c",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Approx True CATE: 4.61\n",
      "Estimated CATE: 1.55\n",
      "Time taken: 5.98s\n"
     ]
    }
   ],
   "source": [
    "condition_var = 'C'\n",
    "condition_var_idx = var_names.index(condition_var)\n",
    "# print(data[:,condition_var_idx].min(), data[:,condition_var_idx].max())\n",
    "condition_state=0.5\n",
    "idx = np.argmin(np.abs(data[:,condition_var_idx]-condition_state))\n",
    "cate_gt = (intervention_data1[idx,target_idx] - intervention_data2[idx,target_idx]).mean()\n",
    "print(f'Approx True CATE: {cate_gt:.2f}')\n",
    "\n",
    "####\n",
    "treatments = define_treatments(treatment_var, intervention1,intervention2)\n",
    "conditions = {'var_name': condition_var, 'condition_value': condition_state}\n",
    "\n",
    "tic = time.time()\n",
    "model = partial(MLPRegressor, hidden_layer_sizes=(100,100), max_iter=200)\n",
    "CausalInference_ = CausalInference(data, var_names, graph_gt, model, discrete=True)\n",
    "\n",
    "cate = CausalInference_.cate(target, treatments, conditions, model)\n",
    "toc = time.time()\n",
    "print(f'Estimated CATE: {cate:.2f}')\n",
    "print(f'Time taken: {toc-tic:.2f}s')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8ce37074",
   "metadata": {},
   "source": [
    "### Couterfactual"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "f6a9919e",
   "metadata": {},
   "outputs": [],
   "source": [
    "fn = lambda x:x\n",
    "coef = 0.5\n",
    "sem = {\n",
    "        'a': [], \n",
    "        'b': [('a', coef, fn), ('f', coef, fn)], \n",
    "        'c': [('b', coef, fn), ('f', coef, fn)],\n",
    "        'd': [('b', coef, fn), ('g', coef, fn)],\n",
    "        'e': [('f', coef, fn)], \n",
    "        'f': [],\n",
    "        'g': [],\n",
    "        }\n",
    "\n",
    "intervention={'a':np.array([0]*10), 'e':np.array([0]*10)}\n",
    "target_var = 'c'\n",
    "discrete = {name:True if name in intervention.keys() else False for name in sem.keys()}\n",
    "\n",
    "T = 5000\n",
    "data, var_names, graph_gt = DataGenerator(sem, T=T, seed=0, discrete=discrete)\n",
    "# plot_graph(graph_gt, node_size=500)\n",
    "# graph_gt\n",
    "\n",
    "\n",
    "sample, _, _= DataGenerator(sem, T=10, noise_fn=None,\\\n",
    "                                    intervention=None, discrete=discrete, nstates=10, seed=1)\n",
    "sample_intervened, _, _= DataGenerator(sem, T=10, noise_fn=None,\\\n",
    "                                    intervention=intervention, discrete=discrete, nstates=10, seed=1)\n",
    "\n",
    "sample=sample[-1]\n",
    "sample_intervened=sample_intervened[-1]\n",
    "var_orig = sample[var_names.index(target_var)]\n",
    "var_counterfactual_gt = sample_intervened[var_names.index(target_var)]\n",
    "# print(f'Original value of target var {target_var}: {var_orig:.2f}')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "7e4112d3",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "True counterfactual -0.68\n",
      "Estimated counterfactual -0.75\n"
     ]
    }
   ],
   "source": [
    "interventions = {name:float(val[0]) for name, val in intervention.items()}\n",
    "\n",
    "# model = partial(MLPRegressor, hidden_layer_sizes=(100,100), max_iter=200)\n",
    "model = LinearRegression\n",
    "# model=None\n",
    "CausalInference_ = CausalInference(data, var_names, graph_gt, model, discrete=True)\n",
    "counterfactual_et = CausalInference_.counterfactual(sample, target_var, interventions, model)\n",
    "print(f'True counterfactual {var_counterfactual_gt:.2f}')\n",
    "print(f'Estimated counterfactual {counterfactual_et:.2f}')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "dd298858",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.16"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
